import request from '@/utils/request'

export function createReturnOrder(returnOrderVo) {
  return request({
    url: '/admin/leaves/return-order/createReturnOrder',
    method: 'post',
    data: returnOrderVo
  })
}

export function deleteReturnOrder(id) {
  return request({
    url: `/admin/leaves/return-order/deleteReturnOrder/${id}`,
    method: 'delete'
  })
}

export function updateReturnOrder(returnOrderVo) {
  return request({
    url: '/admin/leaves/return-order/updateReturnOrder',
    method: 'put',
    data: returnOrderVo
  })
}

export function getReturnOrderList(searchObj) {
  return request({
    url: '/admin/leaves/return-order/getReturnOrderList',
    method: 'post',
    data: searchObj
  })
}

